package com.hntest.entity;
//IP登录日志，对应于 IP登录查询 分会员用户和后台管理员用户

import java.io.Serializable;
import java.util.Date;

public class IpLog implements Serializable {

    public static final int LOGIN_SUCCESS=1;//登陆成功
    public static final int LOGIN_FAIL=0;//登陆失败
    private static final long serialVersionUID = 611574260441041177L;

    private Integer ilid;
    private String ip;  //ip地址
    private int loginState =LOGIN_SUCCESS;  //登录状态
    private String userName=""; //登录用户名
    private Long loginInfoId;   //登录用户id
    private int loginType;  //登录用户类型(=loginInfo的userType)
    private Date loginTime=new Date();

    public IpLog(){}

    public IpLog(Integer ilid, String ip, int loginState, String userName, Long loginInfoId, int loginType, Date loginTime) {
        this.ilid = ilid;
        this.ip = ip;
        this.loginState = loginState;
        this.userName = userName;
        this.loginInfoId = loginInfoId;
        this.loginType = loginType;
        this.loginTime = loginTime;
    }

    public Integer getIlid() {
        return ilid;
    }

    public void setIlid(Integer ilid) {
        this.ilid = ilid;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getLoginState() {
        return loginState;
    }

    public void setLoginState(int loginState) {
        this.loginState = loginState;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getLoginInfoId() {
        return loginInfoId;
    }

    public void setLoginInfoId(Long loginInfoId) {
        this.loginInfoId = loginInfoId;
    }

    public int getLoginType() {
        return loginType;
    }

    public void setLoginType(int loginType) {
        this.loginType = loginType;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }
}
